<?php
/**
 * Created by PhpStorm.
 * User: Administrator
 * Date: 2016/2/1 0001
 * Time: 0:36
 */
require_once 'conn.php';
if(empty($_GET['id'])){//为空执行下面语句
    die('id no ');
}
if(empty($_GET['name'])){//为空执行下面语句
    die('id no ');
}
if(empty($_GET['pass'])){//为空执行下面语句
    die('id no ');
}

$id=intval($_GET['id']);
$user=intval($_GET['name']);
$pass=intval($_GET['pass']);
mysql_query("update mm set `user`='$user',`pass`='$pass' WHERE id=$id");//修改语句

header("Location:index.php");